<template>
  <div class="app">
    <div class="top-img">
      <img src="http://10.31.165.35:3000/images/index/3.png" alt="" />
    </div>
    <div class="location-fa">
      <div class="location">
        <van-tabs
          v-model:active="active"
          type="card"
          color="#F9FBFD"
          title-active-color="black"
          title-inactive-color="black"
        >
          <van-tab title="国内">
            <div class="location-con">
              <ul>
                <li>
                  <label>降落的机场</label>
                </li>
                <li><label>您在哪里下车</label></li>
                <li><label>用车时间</label></li>
              </ul>
            </div>
          </van-tab>
          <van-tab title="海外">
            <div class="location-con">
              <ul>
                <li><label>Airport</label></li>
                <li><label>data</label></li>
                <li><label>time</label></li>
              </ul>
            </div>
          </van-tab>
        </van-tabs>
        <button>查询</button>
      </div>
    </div>
    <div class="tip-fa">
      <div class="tip">
        <span>一件全包</span>
        <i>|</i>
        <span>航变无忧</span>
        <i>|</i>
        <span>爽约退赔</span>
        <i>|</i>
        <span>确认保障</span>
      </div>
    </div>
  </div>
  <div class="fanhui" @click="fanhui">
    <van-icon name="arrow-left" />
  </div>
</template>

<script>
import { useRouter } from "vue-router";
export default {
  setup() {
    const router = useRouter();
    const fanhui = () => {
      router.go(-1);
    };
    return { fanhui };
  },
};
</script>
<style lang="less" scoped>
.fanhui {
  position: absolute;
  top: 12px;
  left: 0;
  font-size: 18px;
  color: white;
  display: block;
  width: 20px;
  height: 20px;
  z-index: 5;
}
.top-img {
  img {
    width: 100%;
    height: 161px;
  }
}
.location-fa {
  height: 260px;
  position: relative;
  margin-bottom: 40px;
  .location {
    width: 357px;
    margin: 0 auto;
    padding-bottom: 20px;
    background-color: #ffffff;
    position: absolute;
    left: 10px;
    top: -60px;
    button {
      display: block;
      width: 318px;
      height: 36px;
      background-image: linear-gradient(to right, #fb8527, #fc642f);
      margin-left: 20px;
      margin-top: 20px;
      border-radius: 6px;
      border: none;
    }
    .location-con {
      ul {
        padding: 0 20px 0 20px;
        li {
          width: 100%;
          height: 76px;
          font-size: 14px;
          font-family: PingFang SC;
          font-weight: 400;
          color: #070707;
          // line-height: 76px;
          border-bottom: 1px solid #000;
          position: relative;
          :root {
            --van-button-large-height: 30px;
          }
          label {
            position: absolute;
            bottom: 10px;
          }
        }
      }
    }
  }
}
.tip-fa {
  width: 356px;
  border-top: 1px solid #000;
  margin: 0 auto;
  .tip {
    width: 273px;
    margin: 0 auto;
    span {
      display: inline-block;
      width: 60px;
      font-size: 13px;
      font-family: PingFang SC;
      font-weight: 400;
      color: #070707;
      line-height: 12px;
    }
    i {
      font-size: 13px;
      font-weight: 400;
      margin-right: 6px;
    }
  }
}
</style>
